package com.zyy.sqlSession;

import com.zyy.pojo.Configuration;
import com.zyy.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * @author zyy
 * @date 2020/11/9 3:09 下午
 * @description
 */
public interface Executer {
    //查询操作
    <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws  Exception;

    //更新操作 包括添加 修改 删除
    Integer update(Configuration configuration,MappedStatement mappedStatement,Object... params) throws Exception;
}
